home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / libs / x / xview / xview3.004 / xview3 / usr / openwin / include / xview_private / gettext.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-29  |  1.5 KB  |  67 lines

  1. /* @(#)gettext.h 50.11 93/06/28 SMI */
  2.  
  3. #define DEFAULT_DOMAIN    "default"
  4. #ifndef __linux
  5. #define DEFAULT_BINDING "/usr/lib/locale\n"
  6. #else
  7. #define DEFAULT_BINDING "/usr/openwin/lib/locale\n"
  8. #endif
  9. #define COOKIE 0xFF
  10. #define BINDINGLISTDELIM '\n'
  11.  
  12. #define MAX_VALUE_LEN        2047
  13. #define MAX_DOMAIN_LENGTH    255
  14. #define LC_NAMELEN        255
  15.  
  16. #include <ctype.h>
  17. #include <errno.h>
  18. #ifdef OS_HAS_LOCALE
  19. #include <locale.h>
  20. #if defined(__linux) && !defined(LC_MESSAGES) && defined(LC_RESPONSE)
  21. #define LC_MESSAGES LC_RESPONSE
  22. #endif
  23. #endif OS_HAS_LOCALE
  24. #include <stdio.h>
  25. #include <sys/types.h>
  26. #include <sys/param.h>
  27.  
  28. struct domain_binding {
  29.     char    *domain_name;
  30.     char    *binding;
  31.     struct   domain_binding *nextdomain;
  32. };
  33.  
  34.  
  35. #include <fcntl.h> 
  36. #include <sys/file.h> 
  37. #include <sys/mman.h> 
  38. #include <sys/stat.h> 
  39. #include <xview/base.h>
  40. #include <xview_private/portable.h>
  41.  
  42. #define MAX_MSG 64 
  43.  
  44. struct struct_mo_info {
  45.     int        message_mid;
  46.     int        message_count;
  47.     int        string_count_msgid;
  48.     int        string_count_msg;
  49.     int        message_struct_size;
  50. } ;
  51.  
  52. struct message_struct {
  53.     int        less;
  54.     int        more;
  55.     int        msgid_offset;
  56.     int        msg_offset;
  57. };
  58.  
  59. struct message_so {
  60.     char *message_so_path;   /* name of message shared object */
  61.     int fd;                /* file descriptor        */
  62.     struct struct_mo_info *mess_file_info; /* information of message file */
  63.     struct message_struct *message_list;/* message list */
  64.     char *msg_ids;            /* actual message ids */
  65.     char *msgs;                /* actual messages */
  66. };
  67.